import request from '@/utils/request'

export function getListByPage(data) {
  return request({
    url: '/imgModel/getListByPage?page=' + data.page + '&limit=' + data.limit +
      '&searchTitle=' + data.searchTitle,
    method: 'get'
  })
}

export function updateImgModel(data) {
  return request({
    url: '/imgModel/update',
    method: 'post',
    data: data
  })
}

export function addImgModel(data) {
  return request({
    url: '/imgModel/add',
    method: 'post',
    data: data
  })
}

export function deleteImgModel(data) {
  return request({
    url: '/imgModel/delete',
    method: 'post',
    data: data
  })
}
